
from ..models import Model


class AccountPayment(Model):
    _name = "account.payment"

    _metadata = {
        "context": {
            "default_payment_type": "inbound",
            "default_partner_type": "customer",
            "res_partner_search_mode": "customer"
        },

        "field_onchange": {
            "state": "",
            "move_line_ids": "1",
            "reconciled_invoices_count": "",
            "has_invoices": "",
            "move_reconciled": "",
            "id": "",
            "name": "",
            "invoice_ids": "1",
            "payment_type": "1",
            "partner_type": "",
            "partner_id": "1",
            "company_id": "",
            "amount": "1",
            "journal_id": "1",
            "destination_journal_id": "",
            "hide_payment_method": "",
            "payment_method_id": "1",
            "payment_method_code": "1",
            "payment_token_id": "",
            "partner_bank_account_id": "",
            "show_partner_bank_account": "",
            "require_partner_bank_account": "",
            "payment_transaction_id": "",
            "currency_id": "1",
            "payment_date": "1",
            "communication": "",
            "payment_difference": "",
            "payment_difference_handling": "",
            "writeoff_account_id": "",
            "writeoff_label": "",
            # "message_follower_ids": "",
            # "activity_ids": "",
            # "message_ids": "",
            # "message_attachment_count": ""
        }
    }
